home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1992-01-29  |  1.1 KB  |  63 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3. Created: Monday, September 16, 1991 at 12:32 AM
  4.  Scrap.p
  5.  Pascal Interface to the Macintosh Libraries
  6.  
  7.   Copyright Apple Computer, Inc. 1985-1991
  8.   All rights reserved
  9. }
  10.  
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT Scrap;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingScrap}
  22. {$SETC UsingScrap := 1}
  23.  
  24. {$I+}
  25. {$SETC ScrapIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$SETC UsingIncludes := ScrapIncludes}
  31.  
  32. TYPE
  33. PScrapStuff = ^ScrapStuff;
  34. ScrapStuff = RECORD
  35.  scrapSize: LONGINT;
  36.  scrapHandle: Handle;
  37.  scrapCount: INTEGER;
  38.  scrapState: INTEGER;
  39.  scrapName: StringPtr;
  40.  END;
  41.  
  42.  
  43. FUNCTION InfoScrap: PScrapStuff;
  44.  INLINE $A9F9;
  45. FUNCTION UnloadScrap: LONGINT;
  46.  INLINE $A9FA;
  47. FUNCTION LoadScrap: LONGINT;
  48.  INLINE $A9FB;
  49. FUNCTION GetScrap(hDest: Handle;theType: ResType;VAR offset: LONGINT): LONGINT;
  50.  INLINE $A9FD;
  51. FUNCTION ZeroScrap: LONGINT;
  52.  INLINE $A9FC;
  53. FUNCTION PutScrap(length: LONGINT;theType: ResType;source: Ptr): LONGINT;
  54.  INLINE $A9FE;
  55.  
  56.  
  57. {$ENDC} { UsingScrap }
  58.  
  59. {$IFC NOT UsingIncludes}
  60.  END.
  61. {$ENDC}
  62.  
  63.